
        
           $(document).ready(function(){
               $.validator.setDefaults({
                  errorClass: 'form_error',
                  errorElement: 'div'
               });
               
                $("#registro").validate({
                   rules:
                   {
                       nombre:{
                           required:true,
                           caracters:true,
                           minlength: 3,
                           maxlength: 15
                       },
                       apPat: {
                           required:true,
                           caracters:true,
                           minlength: 3,
                           maxlength: 15
                       },
                       apMat: {
                           required:true,
                           caracters:true,
                           minlength: 3,
                           maxlength: 15
                       },
                       email: {
                           required:true,
                           email: true
                       },
                       fecNac: {
                           required:true,
                           dateISO: true
                           
                       },
                       nameUser: {
                           required:true,
                           caracters:true,
                           minlength: 4,
                           maxlength: 12
                       },
                       pass:{
                           required:true,
                           minlength: 4,
                           maxlength: 12
                       }
                   }
                });
             
            });
        